// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// No Node.js APIs are available in this process because
// `nodeIntegration` is turned off. Use `preload.js` to
// selectively enable features needed in the rendering
// process.
 window.addEventListener('DOMContentLoaded',()=>{

     const btnClose = document.querySelector('#closeWindow');
     btnClose.addEventListener('click',async ()=>{
         console.log("btnClose click")

     })
    const btn = document.querySelector('#sendMsg');
    btn.addEventListener('click',async ()=>{
        console.log("sendMsg click")
        let res = await window.api.sendHttp('system/getBanner')
        res = JSON.parse(res);
        if(res.code == 1){
			document.querySelector("#title").innerHTML = res.msg;
            localStorage.setItem('msg',res.msg);
		}
    })
}) 